using System.Windows;
using System.Windows.Markup;
using device;

namespace MainView.Test
{
	public partial class DeviceSelectorWindow : Window, IComponentConnector
	{
		public DeviceSelectorWindow()
		{
			InitializeComponent();
		}

		private void btnOK_Click(object sender, RoutedEventArgs e)
		{
			base.DialogResult = true;
		}

		private void btnCancel_Click(object sender, RoutedEventArgs e)
		{
		}

		private void Root_Loaded(object sender, RoutedEventArgs e)
		{
			dataGrid.ItemsSource = Device.GetRS232PortInfo();
		}
	}
}
